#!D:\\Python27\\python
# Filename:pickling.py
#import cPickle as p
import pickle as p

shoplistfile = 'shoplist.data'
# the name of the file where we will store the object

shoplist = ['apple','marngo','carrot']

f = file(shoplistfile,'w')
p.dump(shoplist,f)
f.close()

del shoplist

f = file(shoplistfile)
storelist = p.load(f)
print storelist
